package com.qf.servlet;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @RequestMapping("/helloservlet"): 可以标记在类和方法上，请求路径不同而已
 *
 * @Date 2022/9/29 11:00
 */
@SuppressWarnings("all")

@Controller
@RequestMapping("/helloservlet")
public class HelloServlet {

    @RequestMapping("/hello")
    public String hello(){
        System.out.println("hello world");
        return "index";
    }
}
